/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.bs.analisis.application;

import javax.annotation.PostConstruct;
import javax.ejb.Singleton;
import javax.ejb.Startup;
import javax.enterprise.inject.Produces;
import javax.enterprise.inject.spi.InjectionPoint;
import org.apache.log4j.Logger;

/**
 *
 * @author gbran
 */
@Startup
@Singleton
public class Services {

    @PostConstruct
    public void initialize() {
    }

    @Produces
    public Logger getLogger(InjectionPoint injectionPoint) {
        return Logger.getLogger(injectionPoint.getMember().getDeclaringClass().getName());
    }
}
